#include <iostream>
#include "Nod.cpp"
#include "Frunza.cpp"
#include "Operator.h"
#include "Constanta.cpp"
#include "Necunoscuta.cpp"
#include "Plus.cpp"
#include "Minus.cpp"
#include "Inmultit.cpp"
#include "Impartit.cpp"
#include "Exp.cpp"
#include "Logaritm.cpp"
#include "Sin.cpp"
#include "Tangenta.cpp"
#include "Cotan.cpp"
#include "ASin.cpp"
#include "ACos.cpp"
#include "ATan.cpp"
#include "ACtg.cpp"
#include "Functie.cpp"
using namespace std;
int main ()
{
    Functie *f;
    char *derivata;
    long double rezultat, x;
    static char sir[1000];
    cout<<"Introduceti f(x) = "; cin>>sir;
    f = new Functie(sir);
    cout<<"Introduceti valoarea lui x: "; cin>>x;
    rezultat = f->calculezValoare(x);
    cout<<"Valoarea lui f("<<x<<")= "<<rezultat<<endl;
    derivata= f->derivata();
    cout<<"Derivata este: "<<derivata<<endl;
    rezultat=f->calculezDerivata(x);
    cout<<"Derivata are val in "<<x<<": "<<rezultat<<endl;
    return 0;
}

